package org.emet.entity.biz;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.emet.help.CGResource;
import org.emet.jee.console.entity.BaseEntity;
import org.hibernate.annotations.Index;

//冷藏柜
@Entity
@Table(name = "T_FREEZER_RENT")
public class FreezerRent extends BaseEntity {
	@CGResource("xxxj")
	@Index(name = "index_freezer_rent_biz_no")
	private String bizNo;

	private Long freezerId;
	@CGResource("冷藏柜")
	private String freezerName;
	private Long caseId;
	private String caseName;

	@CGResource("入柜时间")
	private Date startDate;
	private Date expectEndDate;
	@CGResource("出柜日期")
	private Date endDate;
	@CGResource("费用")
	// 在前台是只读的。
	private BigDecimal totalFee;
	private Boolean paied = false;
	@CGResource("备注")
	private String remark;

	public BigDecimal getTotalFee() {
		return totalFee;
	}

	public void setTotalFee(BigDecimal totalFee) {
		this.totalFee = totalFee;
	}

	public Boolean getPaied() {
		return paied;
	}

	public void setPaied(Boolean paied) {
		this.paied = paied;
	}

	public String getBizNo() {
		return bizNo;
	}

	public void setBizNo(String bizNo) {
		this.bizNo = bizNo;
	}

	public Long getCaseId() {
		return caseId;
	}

	public void setCaseId(Long caseId) {
		this.caseId = caseId;
	}

	public String getCaseName() {
		return caseName;
	}

	public void setCaseName(String caseName) {
		this.caseName = caseName;
	}



	public Date getExpectEndDate() {
		return expectEndDate;
	}

	public void setExpectEndDate(Date expectEndDate) {
		this.expectEndDate = expectEndDate;
	}

	public Long getFreezerId() {
		return freezerId;
	}

	public void setFreezerId(Long freezerId) {
		this.freezerId = freezerId;
	}

	public String getFreezerName() {
		return freezerName;
	}

	public void setFreezerName(String freezerName) {
		this.freezerName = freezerName;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}


	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
